package com.yjc.drygoods.search.feign;

import com.yjc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author yjc
 * @create 2022-09-15 8:43
 */
@FeignClient("drygoods-product")
public interface ProductFeignService {
    @GetMapping("/product/attr/info/{attrId}")
    public R info(@PathVariable("attrId") Long attrId);

    @GetMapping("/product/brand/infos")
    public R infoBrands(@RequestParam("brandIds") List<Long> brandIds);

    @GetMapping("/product/skuinfo/get/user/like/skuInfo")
    public R getUserLikeSkuInfo(@RequestParam("username") String username);
}
